package com.ekang.admin.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * Created by zcz on 2017/10/26.
 */
@Mapper
public interface MemberFriendMapper {

    @Select("select a.*,b.unionid from yun_member_contact a left join yun_member b  on a.userId=b.uid where a.ownerId=#{id}")
    List<Map<String,Object>> getMemberListByUserId(@Param("id") Integer id);


}
